<?php

class Admin_ReporterController extends Zend_Controller_Action
{
    /**
     * @return void
     */
    public function init()
    {
    }

    /**
     * @return void
     */
    public function indexAction()
    {
        $URLs = array(
            0 => array(
                'info' => 'Last 20 Added Products (20 sản phẩm mới được thêm vào gần nhất)',
                'base' => 'http://localhost/classico_reporter/last_20_added_productsrpt.php'
            ),
            1 => array(
                'info' => 'Top 20 Products (20 sản phẩm bán chạy nhất)',
                'base' => 'http://localhost/classico_reporter/_20_top_productsrpt.php'
            )
        );
        $numberOfURLs = count($URLs);
        for ($i = 0; $i < $numberOfURLs; $i++) {
            $URLs[$i]['excel'] = $URLs[$i]['base'] . '?export=excel';
            $URLs[$i]['word'] = $URLs[$i]['base'] . '?export=word';
            $URLs[$i]['pdf'] = $URLs[$i]['base'] . '?export=pdf';
        }

        $this->view->URLs = $URLs;
    }
}

